package com.tedsoft.first_group_project;

import com.tedsoft.first_group_project.Assets;
import com.tedsoft.first_group_project.Settings;
import com.tedsoft.first_group_project.SplashScreen;
import com.tedsoft.framework.Game;
import com.tedsoft.framework.Graphics;
import com.tedsoft.framework.Screen;
import com.tedsoft.framework.Graphics.PixmapFormat;

public class LoadingScreen extends Screen {
    public LoadingScreen(Game game) {
        super(game);
    }

    @Override
    public void update(float deltaTime) {
    	
        Graphics g = game.getGraphics();
        Assets.logoscreen = g.newPixmap("logoscreen.png", PixmapFormat.RGB565);
        Assets.buttons = g.newPixmap("gfx/gui/buttons.png", PixmapFormat.ARGB4444);
        Assets.pausemenu = g.newPixmap("pausemenu.png", PixmapFormat.ARGB4444);
        
        Assets.shield_icon = g.newPixmap("gfx/gui/shield_icon.png", PixmapFormat.ARGB4444);
        
        
        Assets.muza = game.getAudio().newMusic("01.ogg");
        
        Assets.pkt = game.getAudio().newSound("punkt.mp3");
        Assets.strata = game.getAudio().newSound("strata.mp3");
        Assets.start = game.getAudio().newSound("start.mp3");
        
        Assets.mark_speedUp = g.newPixmap("motion_marker/speed_mark.png", PixmapFormat.ARGB4444);       
        Assets.mark_slowedTime = g.newPixmap("motion_marker/slow_mark.png", PixmapFormat.ARGB4444);       
        Assets.mark_normal = g.newPixmap("motion_marker/normal_mark.png", PixmapFormat.ARGB4444);  

        Assets.small_ship_icon = g.newPixmap("gfx/gui/ship_small_icon.png", PixmapFormat.ARGB4444);          
        
        Assets.click_to_restart_button = g.newPixmap("click_to_restart_button.png", PixmapFormat.ARGB4444); 
        
        Assets.ship_sprite = g.newPixmap("gfx/ship/ship_1.png", PixmapFormat.ARGB4444);
        Assets.ship_fire_bot = g.newPixmap("gfx/ship/ship_fire_bot.png", PixmapFormat.ARGB4444);
        Assets.ship_fire_left = g.newPixmap("gfx/ship/ship_fire_left.png", PixmapFormat.ARGB4444);        
        Assets.ship_shield = g.newPixmap("gfx/ship/ship_shield.png", PixmapFormat.ARGB4444);  
        
        Assets.resource_1 = g.newPixmap("gfx/resource/resource_1.png", PixmapFormat.ARGB4444); 
        Assets.resource_2 = g.newPixmap("gfx/resource/resource_2.png", PixmapFormat.ARGB4444); 
        Assets.resource_3 = g.newPixmap("gfx/resource/resource_3.png", PixmapFormat.ARGB4444); 
        
        Assets.meteor_1 = g.newPixmap("gfx/meteor/meteor_1.png", PixmapFormat.ARGB4444);        
        Assets.meteor_2 = g.newPixmap("gfx/meteor/meteor_2.png", PixmapFormat.ARGB4444);        
        Assets.meteor_3 = g.newPixmap("gfx/meteor/meteor_3.png", PixmapFormat.ARGB4444);        
        Assets.meteor_4 = g.newPixmap("gfx/meteor/meteor_4.png", PixmapFormat.ARGB4444);        
        Assets.meteor_5 = g.newPixmap("gfx/meteor/meteor_5.png", PixmapFormat.ARGB4444); 
        Assets.meteor_6 = g.newPixmap("gfx/meteor/meteor_6.png", PixmapFormat.ARGB4444);
        
        Assets.meteor_7 = g.newPixmap("gfx/meteor/meteor_7.png", PixmapFormat.ARGB4444); 
        Assets.meteor_8 = g.newPixmap("gfx/meteor/meteor_8.png", PixmapFormat.ARGB4444);          
 
        game.setScreen(new SplashScreen(game));
    }

	@Override
	public void present(float deltaTime) {
		// TODO Auto-generated method stub

	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub

	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

}
